<!DOCTYPE html>
<html lang="en">
  <head>
        <meta charset="utf-8">
        <title>编辑题目</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
	<load href= "__JS__/jshelper.js" /> 
	<load href="__JS__/jQuery/jquery.js" />
    <load href="__JS__/jQuery/jquery.form.js" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/choicedetail';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
       <script   type= "text/javascript"> 
	function   subform(gourl){   
 	 var   gourl; 
  	form2.action=gourl; 
  	form2.submit(); 
	} 
</script> 
</head>

<layout name="Auth:header" />
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <layout name="Auth:leftmenu" />
              	 <div class="span8">
                    <div class="hero-unit">
                  	<h1>单选题修改</h1>
					<p style="font-size:12px">
                    当前位置：
                    <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                    <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                    <a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
                    <a href='__URL__/choose2' class="nowpositionhref">题库</a>>
                    <a href='__URL__/choiceadd' class="nowpositionhref">单选编辑</a>>
                    <a href='__URL__/choicedetail' class="nowpositionhref">单选题库</a>>
                    单选修改
                    </p>			
				</div>
                <form id='form1' method="post" action="__URL__/choiceupdate" >	
                <div id='result' style="color:red; font-size:12px;"></div>
                <input type="hidden" name="id" value={$vo.id}>
			<table class="table table-striped table-bordered table-condensed">
				<tr>
					<td width="400" >题干:<code>{$vo.name}</code></td>
					<td width="400" >当前所属课程:<code>{$cname}</code></td>
				</tr>
				<tr>
					<td width="400" ><code>修改题干：</code><input type="text" name="name" value={$vo.name}></td>				
					<td width="400" ><code>修改所属课程：</code>
            		<select name="courseid">
              			<volist name='cnlist' id='vo1'>
                			<option value =	{$vo1.id}>{$vo1.name}</option>
              			</volist>
           		 	</select>
           		 	</td>
				</tr>
				<tr><td>
					标准答案 :<code>{$vo.answer}</code><br>
					<code>标准答案:</code><select name="answer">
			              		<volist name='anlist' id='vo1'>
			                		<option value =	{$vo1}>{$vo1}</option>
			              		</volist>
           		 			</select></td>
					<td>
					<code>选项：</code><br>
					<volist name='list' id='vo'>
						A:<input type='text' name='A' value='{$vo.A}'><br>
						B:<input type='text' name='B' value='{$vo.B}'><br>
						C:<input type='text' name='C' value='{$vo.C}'><br>
						D:<input type='text' name='D' value='{$vo.D}'><br>
					</volist></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="更新" class="btn btn-success pull-right" width="80px;"></td>
				</tr>
			</table>
		</form>
		</div>
        </div>
		
	</div>

</body>
</html>
